import request from '@/utils/request';

// 获取评论
export const getList = (params) => {
  return request({
    url: '/api/zdservercore-bbs/bbscommentsinfo/page',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/zdserver_bbs/bbscommentsinfo/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/zdserver_bbs/bbscommentsinfo/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}
// 新增评论
export const add = (row) => {
  return request({
    url: '/api/zdservercore-bbs/bbscommentsinfo/save',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/zdserver_bbs/bbscommentsinfo/submit',
    method: 'post',
    data: row
  })
}

